import { createApp } from 'vue'
import './style.css'
import 'ant-design-vue/dist/antd.css'
import App from './App.vue'
import Antd from 'ant-design-vue';
import * as antIcons from '@ant-design/icons-vue'
import router from './router'

const app = createApp(App)
const antIconsList = antIcons; 
// 注册全局图标组件
for (const key in antIconsList) {
    app.component(key, antIconsList[key])
}


app.config.globalProperties.$antIcons = antIcons; // 挂在到vue实例上

app.use(router).use(Antd).mount('#app')
